﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Team4.reservations.touchscreen
{
    public partial class Default : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            string thePageImOn = Request.Url.ToString();
            thePageImOn = thePageImOn.Remove((thePageImOn.IndexOf("reservations/")));
            serverPathHiddenField.Value = thePageImOn;

            if (!Page.IsPostBack) // Initial Page Load
            {
                roomDropDownList.DataTextField = "TextField";
                roomDropDownList.DataValueField = "Id";
                roomDropDownList.DataSource = BLL.Room.Rooms;
                roomDropDownList.DataBind();
            }
        }
    }
}